package com.itheima_test;

public class Test2 {
    public static void main(String[] args) {
        getProduct(10,20,(int a,int b)->{
            return a*b;
        });
    }

    private static void getProduct(int a , int b ,IntCalc calc){
        int product = calc.calc(a, b);
        System.out.println(product);
    }
}
